package com.Ajava1704.for设计模式.for责任链模式;

/**
 * 作者: LCG
 * 日期: 2020/2/15 09:05
 * 描述:
 */
public class Test011 {
    public static void main(String[] args) {

        ForZenRenLianImpl forZenRenLian1=new ForZenRenLianImpl("A");
        ForZenRenLianImpl forZenRenLian2=new ForZenRenLianImpl("B");
        ForZenRenLianImpl forZenRenLian3=new ForZenRenLianImpl("C");

        forZenRenLian1.setForZenRenLian(forZenRenLian2);
        forZenRenLian2.setForZenRenLian(forZenRenLian3);

        forZenRenLian1.test();
    }
}
